<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="javascript:alert('提示信息')" id="alert">Alert</a> <br>
    <a href="javascript:confirm('真的要删除吗？')" id="confirm">Confirm</a> <br>
    <a href="javascript:var name=prompt('请输入姓名：');document.write(name)" id="prompt">Prompt</a> <br>

</body>
</html>